package top.hidoctor.auscultation.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.bean.ShaixuanBean;

public class ShaixuanAdapter extends BaseQuickAdapter<ShaixuanBean> {
    public ShaixuanAdapter(int layoutResId, List<ShaixuanBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(final BaseViewHolder helper, final ShaixuanBean item) {
        helper.setText(R.id.checkbox, item.getName());
        helper.setChecked(R.id.checkbox, item.isCheck());
        helper.setOnClickListener(R.id.checkbox,new OnItemChildClickListener());
    }
}
